<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script src="../js/vue.js"></script>
		<div id="app">
			<!-- 原理 两个指令 v-bind 绑定value  v-on监听input -->
			<input type="text" id="" value="" v-bind:value="message" @input="message=$event.target.value" />
			{{message}}
		</div>
		<script>
			var app = new Vue({
				el: '#app',
				data: {
					message:"你好啊"
				},
				methods: {
					valueChange(event){
						this.message=event.target.value
						console.log("----")
					}
				}
			})
		</script>
	</body>
</html>
